class PrivacyBeanTool {
  String? msg;
  int? code;
  PrivacyBean? data;

  bool get isRequestSuccess {
    return code == 200;
  }

  PrivacyBeanTool({this.msg, this.code, this.data});

  PrivacyBeanTool.fromJson(Map<String, dynamic> json) {
    msg = json['msg'];
    code = json['code'];
    data = json['data'] != null ? new PrivacyBean.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['msg'] = this.msg;
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class PrivacyBean {
  int? id;
  String? bankName;
  String? accountNumber;
  String? userServicesAgreement;
  String? privacyAgreement;

  PrivacyBean(
      {this.id,
      this.bankName,
      this.accountNumber,
      this.userServicesAgreement,
      this.privacyAgreement});

  PrivacyBean.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    bankName = json['bankName'];
    accountNumber = json['accountNumber'];
    userServicesAgreement = json['userServicesAgreement'];
    privacyAgreement = json['privacyAgreement'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['bankName'] = this.bankName;
    data['accountNumber'] = this.accountNumber;
    data['userServicesAgreement'] = this.userServicesAgreement;
    data['privacyAgreement'] = this.privacyAgreement;
    return data;
  }
}
